package com.hqyj.service.impl;

import com.hqyj.pojo.CustomerHotel;
import com.hqyj.dao.CustomerHotelMapper;
import com.hqyj.pojo.Tables;
import com.hqyj.service.CustomerHotelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * <p>
 * 点菜菜单表 服务实现类
 * </p>
 *
 * @author rock
 * @since 2021-10-26
 */
@Service
public class CustomerHotelServiceImpl implements CustomerHotelService {
    @Autowired
    CustomerHotelMapper customerHotelMapper;

    @Override
    public HashMap<String, Object> update(CustomerHotel ch) {
        HashMap<String, Object> map = new HashMap<>();
        int num = customerHotelMapper.updateById(ch);
        if (num > 0) {
            map.put("info", "保存成功");
        } else {
            map.put("info", "保存失败");
        }
        return map;
    }
}
